How to change BrowserRouter and HashRouter depend on variable

welcome to shbcf.ru